import styles from './index.less';
type Props={
	icon:string;
	name:string;
	line:boolean;
}
export default function({icon,name,line}:Props){
	console.log(icon,name,line);
	const size=line?14:50
	return <div className={[styles.box,line?styles.line:""].join(" ")}>
		<div className={styles.box_row}>
			<img src={icon} alt="" width={size} height={size}/>
			<span>{name}</span>
		</div>
	</div>
}